/**
 * @file language.h
 * @brief language
 * @author JakeYang <add358@gmail.com>
 * @version 0.1
 * @date 2016-05-26
 */

#ifndef __LANGUAGE_H__
#define __LANGUAGE_H__

#include <glib.h>

G_BEGIN_DECLS
typedef enum {
    CHINESE,
    ENGLISH
}LanguageType;

#define _(str) language_get_text(str)

extern void language_load(LanguageType type);
extern void language_unload();
extern const gchar *language_get_text(const gchar *str);

G_END_DECLS

#endif /* end of __LANGUAGE_H__ */
